package cn.hackcloud.designpattern.composite;

public abstract class OrganizationComponent {
	private String name;
	private String desc;

	void add(OrganizationComponent organizationComponent) {
	};

	void remove(OrganizationComponent organizationComponent) {
	};

	abstract void print();

	public OrganizationComponent(String name, String desc) {
		super();
		this.name = name;
		this.desc = desc;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	@Override
	public String toString() {
		return "OrganizationComponent [name=" + name + ", desc=" + desc + "]";
	}

}
